package com.linzp.bishe.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.linzp.bishe.entity.Publications;
import lombok.Data;

/**
 * @ClassName PublicationExcel
 * @Description 描述
 * @Author LinZePeng
 * @Date 2022/2/28 21:41
 * @Version 1.0
 */
@Data
public class PublicationExcel {
	@ExcelProperty("类型")
	private String publicationType;
	@ExcelProperty("名称")
	private String publicationName;
	@ExcelProperty("出版社")
	private String press;
	@ExcelProperty("ISBN号")
	private String isbn;
	@ExcelProperty("级别")
	private String publicationLevel;
	@ExcelProperty("类别")
	private String category;

	public Publications getPublication(){
		return new Publications()
				.setPublicationType(this.publicationType)
				.setPublicationName(this.publicationName)
				.setPress(this.press)
				.setIsbn(this.isbn)
				.setPublicationLevel(this.publicationLevel)
				.setCategory(this.category);
	}
}
